package cn.liyao.web.model;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "t_friend")
public class Friend {

    @Id
    @Column(columnDefinition = "VARCHAR(64)")
    private String id;

    @Column(columnDefinition = "VARCHAR(64)")
    private String userId;

    @Column(columnDefinition = "VARCHAR(64)")
    private String friendId;

    private Date addTime;

    @Column(columnDefinition = "VARCHAR(64)")
    private String remark;

    // 0 正常  1 已删除
    private Integer state = 0;

    // 0 正常  1 已拉黑
    private Integer black = 0;

    private User.Gender gender;

}
